<template>
  <div class="ewm-content flex-column flex-space-between">
    <span @click="fn.back()" class="mui-action-back"><img class="back-btn" src="../../../../static/images/back.png"></span>
    <div class="flex-column flex-center">
      <img class="history-message" :src="qrcodeUrl" alt="" width="60%">
      <h4 class="header-right flex-center">扫码签到</h4>
    </div>
    <div @click="downLoadFile" class="header-search flex-column flex-center">
      <img class="history-message download" src="../../../../static/images/zzsh_ewm_down.png" width="20%">
      <p class="header-right flex-center">下载</p>
    </div>
  </div>
</template>

<script>
  import tools from '@/utils/tools'
  import loginService from '@/service/loginService'
  export default {
    name: 'erweima',
    data () {
      return {
        fn: tools,
        qrcodeUrl: ''
      }
    },
    created () {
      this.qrcodeUrl = this.$localStorage.get('qrcodeUrl')
    },
    methods: {
      downLoadFile () {
        if (window.android && window.android.downloadFile) {
          window.android.downloadFile(this.qrcodeUrl, null)
        }
      }
    }
  }
</script>

<style scoped>

</style>
